package cn.edu.lzu.dao;

import cn.edu.lzu.entity.LiveHabit;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @PackageName: cn.edu.lzu.dao
 * @InterfaceName: LiveHabitMapper
 * @Description: TODO
 * @Author: 张琦[QQ:3098086691]
 * @Date: 2020/4/19 10:38
 * @Version: 1.0
 */
@Mapper
public interface LiveHabitMapper {
    @Insert("insert into live_habit (live_habit_id, dietary_habit, sleep_length, sleep_quality, smoke_status, drink_status, mental_workload, physical_workload, other_habit, record_time, user_identity, is_deleted) values (default, #{dietaryHabit}, #{sleepLength}, #{sleepQuality}, #{smokeStatus}, #{drinkStatus}, #{mentalWorkload}, #{physicalWorkload}, #{otherHabit}, #{recordTime}, #{userIdentity}, 0)")
    int insLiveHabitMsg(LiveHabit liveHabit);
}
